﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Customer_Profile
{
    public partial class left : System.Web.UI.Page
    {
        

        public string menu_idx;
        public string scriptFlash;
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpContext.Current.Response.Buffer = true;
            HttpContext.Current.Response.Expires = 0;
            HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
            HttpContext.Current.Response.AddHeader("pragma", "no-cache");
            HttpContext.Current.Response.AddHeader("cache-control", "private");
            HttpContext.Current.Response.CacheControl = "no-cache";

            scriptFlash = "";
            if (!Page.IsPostBack)
            {
                if (Request["menu_idx"] != null)
                {
                    menu_idx = Request["menu_idx"].Trim();
                }
                else
                {
                    menu_idx = "2";
                }
            }
            scriptFlash += "<div id='div0' style='position:absolute;left:0px;top:-17px;border:1px solid #ccc;width:100px;height:100px;'>";
            scriptFlash += "<OBJECT id='menu' codeBase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' ";
            scriptFlash += "height='600' width='206' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'	VIEWASTEXT> ";
            scriptFlash += "<PARAM NAME='_cx' VALUE='5450'> ";
            scriptFlash += "<PARAM NAME='_cy' VALUE='15875'> ";
            scriptFlash += "<PARAM NAME='FlashVars' VALUE=''> ";
            scriptFlash += "<PARAM NAME='Movie' VALUE='menu.swf?menu_idx=" + menu_idx + "'>";
            scriptFlash += "<PARAM NAME='Src' VALUE='menu.swf?menu_idx=" + menu_idx + "'>";
            scriptFlash += "<PARAM NAME='WMode' VALUE='Window'>";
            scriptFlash += "<PARAM NAME='Play' VALUE='0'>";
            scriptFlash += "<PARAM NAME='Loop' VALUE='-1'>";
            scriptFlash += "<PARAM NAME='Quality' VALUE='High'>";
            scriptFlash += "<PARAM NAME='SAlign' VALUE=''>";
            scriptFlash += "<PARAM NAME='Menu' VALUE='-1'>";
            scriptFlash += "<PARAM NAME='Base' VALUE=''>";
            scriptFlash += "<PARAM NAME='AllowScriptAccess' VALUE='sameDomain'>";
            scriptFlash += "<PARAM NAME='Scale' VALUE='ShowAll'>";
            scriptFlash += "<PARAM NAME='DeviceFont' VALUE='0'>";
            scriptFlash += "<PARAM NAME='EmbedMovie' VALUE='0'>";
            scriptFlash += "<PARAM NAME='BGColor' VALUE='F4F4F4'>";
            scriptFlash += "<PARAM NAME='SWRemote' VALUE=''>";
            scriptFlash += "<PARAM NAME='MovieData' VALUE=''> ";
            scriptFlash += "<PARAM NAME='SeamlessTabbing' VALUE='1'>";
            scriptFlash += "<embed src='menu.swf' quality='high' bgcolor='#f4f4f4' width='206' height='600' name='menu' ";
            scriptFlash += "align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ";
            scriptFlash += "pluginspage='http://www.macromedia.com/go/getflashplayer' />";
            scriptFlash += "</OBJECT>";
            scriptFlash += "</div>";

        }
    }
}
